{% extends 'myadmin/base.html' %}
{% block title %}
<title>Book-shop图书订单添加</title>
{% endblock %}
{% block con %}
<div class="panel-body">
  <div class="row" style="margin-top: 80px;">
    <form class="form-horizontal" role="form" action="{% url 'myadmin_orders_add' %}" method="post"
      enctype="multipart/form-data">
      {% csrf_token %}
            
      <section class="panel">
        <header class="panel-heading">
          图书订单添加列表
        </header>
        <div class="panel-body">
          <form class="form-horizontal " method="get">

            <div class="form-group">
              <label class="col-lg-4 control-label">图书名*:</label>
              <div class="col-lg-4">
                <input type="text" name="title" required class="form-control"
                  placeholder="请输入图书名">
              </div>
            </div>
            <div class="form-group">
              <label class="col-lg-4 control-label">单价*:</label>
              <div class="col-lg-4">
                <input type="text" name="price" required class="form-control"
                  placeholder="请输入图书价格">
              </div>
            </div>
            <div class="form-group">
              <label class="col-lg-4 control-label">数量*:</label>
              <div class="col-lg-4">
                <input type="number" name="num" required class="form-control"
                  placeholder="请输入图书数量">
              </div>
            </div>
            <div class="form-group">
              <label class="col-lg-4 control-label">图片:</label>
              <div class="col-lg-4">
                <input type="file" name="pic">
              </div>
            </div>
            <div class="form-group">
              <div class="col-lg-offset-4 col-lg-4">
                <button class="btn btn-primary">提&nbsp;&nbsp;&nbsp;&nbsp;交</button>
              </div>
            </div>
          </form>
        </div>
      </section>
    </form>
  </div>
</div>

{% endblock %}